ifeq ($(targetbase),linux)
include $(MK_DIR)/sys.mk

OBJ_DIR=$(OBJ_BASE_DIR)/phy_drv

LIB = phy
SRCS += $(shell find core/ -name "*.c")
SRCS += $(shell find drvs/ -name "*.c")
SRCS += $(shell find ctccli/ -name "*.c")

CPPFLAGS += -I$(SDK_DIR)/phy_drv/include
CPPFLAGS += -I$(SDK_DIR)/sal/include
CPPFLAGS += -I$(SDK_DIR)/core/
CPPFLAGS += -I$(SDK_DIR)/core/api/include
CPPFLAGS += -I$(SDK_DIR)/core/common/include
CPPFLAGS += -I$(SDK_DIR)/libctccli/include
CPPFLAGS += -I$(SDK_DIR)/libctccli/ctc_shell/include
CPPFLAGS += -I$(SDK_DIR)/ctccli/sdkcli/
CPPFLAGS += -I$(SDK_DIR)/app
CPPFLAGS += -I$(SDK_DIR)/app/config
CPPFLAGS += $(foreach n, $(COMPATIBAL_CHIP), -I$(SDK_DIR)/ctccli/sdkcli/$(n))
CPPFLAGS += $(foreach n, $(COMPATIBAL_CHIP), -I$(SDK_DIR)/core/$(n)/include)
CPPFLAGS += $(foreach n, $(COMPATIBAL_CHIP), -I$(SDK_DIR)/core/$(n)/include/ctc)
CPPFLAGS += $(foreach n, $(COMPATIBAL_CHIP), -I$(SDK_DIR)/core/$(n)/include/sys)
CPPFLAGS += -I$(SDK_DIR)/driver
CPPFLAGS += -I$(SDK_DIR)/driver/api
CPPFLAGS += -I$(SDK_DIR)/phy_drv/sdk_phy
CPPFLAGS += -I$(SDK_DIR)/phy_drv/core/inc
CPPFLAGS += -I$(SDK_DIR)/phy_drv/core/src

CPPFLAGS += -DSDK_PHY
CPPFLAGS += -DSUPPORT_PHY_MARS
CPPFLAGS += -DSUPPORT_PHY_MARS8P
CPPFLAGS += -DSUPPORT_PHY_MARS4C
CPPFLAGS += -DSUPPORT_PHY_MARS1S
CPPFLAGS += -DSUPPORT_PHY_MARSAX

include $(MK_DIR)/solib.mk

endif

